<html>
    <head>
        <meta charset = "UTF-8">
            <style>
                body{
                    margin:20px;
                }
            </style>
    </head>
    <body>
        <span >用户名</span>
        <input id = "userName">
        <p></p>
        <span  >密码</span>
        <input  id = "pwd" type="password" >
        <p></p>


       <button id = "button">登陆</button>
       <script>
           var userName = document.getElementById('userName');
            var pwd = document.getElementById('pwd');
            var btn = document.getElementById('button');
           
           btn.onclick = function (){
                var name = userName.value;//拿到用户名-->
                var passWd = pwd.value;//拿到用户名-->
                
             window.location.href = 'xmg://' + name + '?' + passWd ;


           }
       
           </script>
       
       
    </body>




</html>